#include "../include/head.h"

// int makeworker(shareRes_t * share, pthread_data_t * pthread_data, int *exitFlag,int *download_pipe,int *upload_pipe)
// {
//     for (int i = 0; i < pthread_data->workernum;i++)
//     {

//         if(i==0)
//         {
//             share[i].pthread_data = pthread_data;
//             share[i].exitflag=exitFlag;
//             share[i].download_pipe = download_pipe;
//             pthread_create(&share[i].pthread_data->ptidarr[i], NULL, download_enter, &share[i]);
//         }
//         else if(i==1)
//         {
//             share[i].pthread_data = pthread_data;
//             share[i].exitflag=exitFlag;
//             share[i].download_pipe = upload_pipe;
//             pthread_create(&share[i].pthread_data->ptidarr[i], NULL, upload_enter, &share[i]);
//         }
//     }

//     return 0;

// }
